<%--
 *  File:    SalesOrderViewHeader.jsp
 *  @Author: TracyYuan
 *  Date:    2002/12/09
 *
 *  Copyright (C) 2000 - 2001 Oval Technologies, Inc.
 *  All rights reserved.
 *
 *  This software is the confidential and proprietary information of Oval
 *  Technologies, Inc. ("Confidential Information").  You shall not
 *  disclose such Confidential Information and shall use it only in
 *  accordance with the terms of the license agreement you entered into
 *  with Oval.
--%>


<%@ include file="/inc/SessionTimeout.inc"%>
<%@ page language="java" %>
<%@ page import="java.util.*" %>
<%@ page import="org.apache.log4j.Category" %>

<%@ page contentType = "text/html;charset=UTF-8" %>
<%@ taglib uri="/WEB-INF/PageFlow.tld" prefix="PageFlow" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/oval-tag.tld" prefix="oval" %>
<%@ taglib uri="/WEB-INF/custom.tld" prefix="custom" %>



<% //--------------------------------------  setting logger --%>
<%
  Category cat = Category.getInstance("jsp.SalesOrderViewHeader");
  //init param
  String strModuleName = "BIEE";
  String privilegeCode = "Z0404";
  String contextPath = request.getContextPath();
%>
<%--<%@ include file="/inc/Security.inc" %>--%>
<%@ include file="/inc/PageDefault.inc" %>

<html>
<head>
<title>SalesOrderViewHeader</title>
<%@ include file="/inc/InitEdit.inc" %>
<%
    String notesId = request.getParameter("notesid");
%>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="<%=contextPath%>/css/<%= strLanguageCode %>/main.css" type="text/css">
<script language="JavaScript" src="<%=contextPath%>/css/<%= strLanguageCode %>/script.js"></script>
<script language="JavaScript" src="<%=contextPath%>/js/FuncLib.js"></script>
<script language="JavaScript">
function page_back()
{

}
function page_submitforapproval()
{

    if ( ! confirm("<%= message.getMessageDesc("ARE_YOU_SURE_TO_SUBMIT_APPROVE") %>") )  return;

  	document.frm.actionname.value = "submitforapproval";
  	document.frm.target = "_parent";
  	isRunning = true;
  	document.frm.submit();
}

function page_action(action)
{
  var url = "";
  var params = "&notesid=<%=JspHelper.filterNull( notesId)%>";
  if (action == "Msummary")
	  url = "NotesInfoPop.jsp?<%= OvalTools.randomURL() %>" + params;
  else if (action == "Maccessory")
	  url = "NotesAccessoryView.jsp?<%= OvalTools.randomURL() %>" + params;
  parent.down.location.href=url;
}
</script>
</head>
<body leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<table width="100%" cellspacing="0" cellpadding="0">
  <tr>
    <td>
      <table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
        <tr>
          <td  class="summary_top"></td>
        </tr>
        <tr>
          <td style="PADDING-BOTTOM: 1px; PADDING-LEFT: 1px; PADDING-RIGHT: 1px; PADDING-TOP: 0px" class="black_line">
            <table border=0 cellpadding=0 cellspacing=0 width="100%">
              <tr>
                <td class=black_line height="1"></td>
              </tr>
              <tbody>
              <tr>
                <td bgcolor=#ffffff class=m_title>&nbsp;</td>
              </tr>
              <tr>
                <td background=../../images/<%= strLanguageCode %>/M_bg.gif  bgcolor=#ffffff valign="bottom">
                  <table border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td><img src="images/<%= strLanguageCode %>/M_bg.gif" width="1" height="20"></td>
                      <%
                        String classname1 = "clickred";
                        String classname2 = "hand1";
                        String tempObj = "Msummary";
                        if(request.getParameter("menuLocation")!=null&&request.getParameter("menuLocation").equals("2"))
                        {
                          classname2 = "clickred";
                          tempObj = "Mdetail";
                        }
                      %>
                      <td class="<%=JspHelper.filterNull(classname1)%>" id="Msummary" valign=bottom  width="78" background="<%=contextPath%>/images/<%= strLanguageCode %>/mark_bg.gif" onclick="javascript:switchTags(this,<%=JspHelper.filterNull(tempObj)%>);page_action('Msummary');"><div align=center><%=label.getLabelName("L_Summary")%></div></td>
                      <td class="<%=JspHelper.filterNull(classname2)%>" id="Maccessory" valign=bottom  width="78" background="<%=contextPath%>/images/<%= strLanguageCode %>/mark_bg.gif" onclick="javascript:switchTags(this,<%=JspHelper.filterNull(tempObj)%>);page_action('Maccessory')"><div align=center><%=label.getLabelName("L_Maccessory")%></div></td>
                      </tr>
                  </table>
                </td>
              </tr>
              </tbody>
            </table>
          </td>
        </tr>
      </table>
    </td>
  </tr>
</table>
</body>
</html>


